package com.zq.zqsdk

import android.os.Bundle
import android.view.View
import com.ziq.base.base.BaseActivity
import com.ziq.base.extension.binding
import com.ziq.base.extension.click
import com.zq.apt.annotation.BindView
import com.zq.zqsdk.databinding.ActivityMainBinding
import com.zq.zqsdk.test.JavassitTest

class MainActivity : BaseActivity() {

    private val binding : ActivityMainBinding by binding()

    @BindView(R.id.test)
    lateinit var btnTest: View

    @BindView(R.id.test2)
    lateinit var btnTest2: View

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding.root
        MainActivity_ViewBinding().bind(this)
        btnTest.click {
            val result = JavassitTest().test(5, 6)
            println("result: $result")

        }
        btnTest2.click {
            JavassitTest().test2(5, 6)
        }
    }

}